#include "payment.h"
#include "ui_payment.h"

payment::payment(QWidget *parent) :
    QMainWindow(parent),
   // m_mclient(new(mClient)),
    sell_num(0),
    ui(new Ui::payment)
{
    ui->setupUi(this);
}

payment::~payment()
{
    delete ui;
}

void payment::on_back_product_clicked()
{
    this->parentWidget()->show();
    this->hide();
}


void payment::on_pay_button_clicked()
{
    QMessageBox::information(this, "消息", "购买成功");
    sell_num++;
    emit new_buy(sell_num);
    qDebug()<<"aksfhkjahsdkjf";
}

